<!--
	创建者：luyiming
	该文件用于：
	创建时间：2020-03-06 21:47:52
-->
<template>
	<div class="RCIM-licenceStatistics_view">
		<AbnormalTemplate :treeData="treeData" @treeHandle="treeHandle" :showTimeLinePiker="false">
			<!-- <div slot="rightBtn">&nbsp;<el-button @click="downloadExcel">导出</el-button></div> -->
			<Table
				:tableData="tableData"
				:tableHead="tableHead"
				:propKey="{ prop: 'id', label: 'name' }"
				:isUseSlot="false"
				:page="listQuery.page"
				:limit="listQuery.limit"
				v-loading="listLoading"
				@handleEdit="handleEdit"
			>
			</Table>

			<Pagination
				v-show="total > 0"
				:total="total"
				:page.sync="listQuery.page"
				:limit.sync="listQuery.limit"
				@pagination="getList"
			></Pagination>
		</AbnormalTemplate>
		<el-dialog
			class="licenceImgDialog"
			:visible.sync="dialogVisible"
			:close-on-click-modal="false"
			:destroy-on-close="true"
			width="50%">
			<div class="licence_img">
				<h2 class="dialogTitle">辐射安全许可证</h2>
				<el-scrollbar>
					<div style="height:420px">
						<!-- <img v-for="item in licenceInfo.licenceImgUrls" class="licenceImg" src=""/> -->
						<el-image
							class="licenceImg"
							v-for="(item,index) in licenceInfo.licenceImgUrls"
							:key="index"
							style="display:block;"
							:src="item.imgUrl"
							:preview-src-list="licenceInfoImgs">
						</el-image>
					</div>
				</el-scrollbar>

			</div>
			<span slot="footer" class="dialog-footer" v-if="canEdit">
				<el-button type="primary" @click="submitSuggest(licenceInfo.id,1)">同意</el-button>
				<el-button @click="submitSuggest(licenceInfo.id,2)">不同意</el-button>
			</span>
		</el-dialog>
		<el-dialog
			:visible.sync="unTongyi"
			:close-on-click-modal="false"
			:destroy-on-close="true"
			:title="'请填写理由'"
			width="50%">
				<el-input
					type="textarea"
					:rows="2"
					placeholder="请输入拒绝理由"
					v-model="resolution"
				></el-input>
				<span slot="footer" class="dialog-footer">
					<el-button type="primary" @click="submitSuggestDis(licenceInfo.id)">确认</el-button>
					<el-button @click="submitSuggesthand()">取消</el-button>
				</span>
		</el-dialog>
	</div>
</template>

<script>
import RcimLicenceStatistics from './index.js';
export default RcimLicenceStatistics;
</script>

<style lang="scss" scoped>
@import "./index.scss";

</style>
<style lang='scss'>
.RCIM-licenceStatistics_view{
	.licenceImgDialog{
		.el-dialog__footer{
			text-align: center !important;
		}
	}
}

</style>
